/*
* 该文件由工具生成，请勿更改
* 接口说明读取队列信息
* 创建时间：2018/6/5 17:47:27
**/
using System;
using System.Collections.Generic;
using System.Linq;
using Pacs.Services.Soa;
using System.Text;
using System.Threading.Tasks;
namespace Pacs.Services.Server.DJ_HuoQuDuiLieXinXi
{
    public partial class DJ_HuoQuDuiLieXinXi : ServiceBase
    {
        public DTOResponse<DJ_HuoQuDuiLieXinXiResponseParam> Excute(DJ_HuoQuDuiLieXinXiRequest request)
        {
            var bll = new Pacs.BLL.YW_PatientWaitList();
            string where = "ID='" + request.Body.ID + "' or JiuZhenXinXiID='"
            + request.Body.JiuZhenXinXiID +
            "'  or XiTongGuanLianHao='" +
            request.Body.XiTongGuanLianHao + "' or ZhenShiID='" + request.Body.ZhenShiID + "' ";
            var date = bll.GetListByPage(where, "PaiXu",0,request.Body.Count);
            var list = bll.DataTableToList(date.Tables[0]);
            //var list = bll.GetModelList("ID='" + request.Body.ID + "' or JiuZhenXinXiID='"
            //+ request.Body.JiuZhenXinXiID +
            //"'  or XiTongGuanLianHao='" +
            //request.Body.XiTongGuanLianHao + "' or ZhenShiID='" + request.Body.ZhenShiID + "';");
            var para = new DJ_HuoQuDuiLieXinXiResponseParam();
            para.PatientWaitLists = list;
            return new DTOResponse<DJ_HuoQuDuiLieXinXiResponseParam>(para);
        }
    }
}
